package com.cc.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cc.model.FileUpload;
import com.cc.model.FileUploadExample;

public interface FileUploadMapper {
    long countByExample(FileUploadExample example);

    int deleteByExample(FileUploadExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(FileUpload record);

    int insertSelective(FileUpload record);

    List<FileUpload> selectByExample(FileUploadExample example);

    FileUpload selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") FileUpload record, @Param("example") FileUploadExample example);

    int updateByExample(@Param("record") FileUpload record, @Param("example") FileUploadExample example);

    int updateByPrimaryKeySelective(FileUpload record);

    int updateByPrimaryKey(FileUpload record);

	List<FileUpload> findFileByTaskId(@Param("foreignKeyId")String foreignKeyId);
	/**
	 *根据foreignKeyId查询和填报记录相关的附件
	 * @param foreignKeyId
	 * @return
	 */
	List<FileUpload> findFileByReportId(String foreignKeyId);
	/**
	 *根据planTaskId查询评分附件
	 * @param foreignKeyId
	 * @return
	 */
	List<FileUpload> findFileByPlanTaskId(String  foreignKeyId);
	
	
	
}